
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id: CursorStateTest1.java 90 2009-04-23 03:07:07Z archie.cobbs $
 */

package org.dellroad.sidekar.util;

import com.sleepycat.je.DatabaseEntry;

public class CursorStateTest1 extends CursorStateTest {

    private static final int NUM_ENTRIES = 15;

    @Override
    protected int getNumEntries(String name) {
        return NUM_ENTRIES;
    }

    @Override
    protected void createEntry(String name, int i, DatabaseEntry key, DatabaseEntry value) {
        byte[] buf = new byte[4 + this.random.nextInt(5)];
        this.random.nextBytes(buf);
        key.setData(buf);
        this.random.nextBytes(buf);
        value.setData(buf);
    }
}

